package com.zk.mybatisplus.test;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.core.env.Environment;
import springfox.documentation.oas.annotations.EnableOpenApi;

import java.util.Arrays;

/**
 * @author Administrator
 */
@Slf4j
@EnableOpenApi
@SpringBootApplication
public class DemoServiceApplication {
    public static void main(String[] args) {
        SpringApplication springApplication = new SpringApplication(DemoServiceApplication.class);
        Environment env = springApplication.run(args).getEnvironment();
        log.info("Platform biz modules server has started : {}, CPU core : {}"
                , Arrays.toString(env.getActiveProfiles()), Runtime.getRuntime().availableProcessors());
    }
}
